function cancelQuesOrderDialog(orderId, callback = Function()) {
    if (!orderId) {
        return $.toast("订单ID不能为空");
    }

    const $dom = $.dialog("是否确定取消该订单",
        {
            ok() {
                cancelQuesOrder({
                    orderId
                }, res => {
                    if (res.Code !== 10000) {
                        return $.toast(res.Message);
                    }

                    $dom.remove();
                    $.toast("取消成功");
                    callback();
                })
            }
        }
    )

    function cancelQuesOrder(param, callback = Function()) {
        return $.sApi({
            data: param,
            url: "/api/QuestionOrder/cancelQuesOrder"
        }, callback)
    }
}